/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package cart.hibernate.address;

/**
 *
 * @author BibooChung
 */
import cart.hibernate.order.*;

public class Address {
    private long orderId;
    private String flat;
    private String buildingAndBlock;
    private String district;
    private String region;

    private Order order;

    public Address(){
    }

    public Address(String flat, String buildingAndBlock, String district, String region){
            this.flat = flat;
            this.buildingAndBlock = buildingAndBlock;
            this.district = district;
            this.region = region;
    }

    public Order getOrder(){
        return order;
    }public long getOrderId(){
        return orderId;
    }
    /**
     * Getter of flat
     * @return this.flat
     */
    public String getFlat(){
        return flat;
    }

    public String getBuildingAndBlock(){
        return buildingAndBlock;
    }

    public String getDistrict(){
        return district;
    }

    public String getRegion(){
        return region;
    }
    
    /**
     * Setter of order
     * @param order set order to order's value
     */
    public void setOrder(Order order) {
        this.order = order;
    }
    public void setOrderId(long orderId) {
        this.orderId = orderId;
    }
    /**
     * Setter of flat
     * @param flat set flat to flat's value
     */
    public void setFlat(String flat){
        this.flat = flat;
    }

    public void setBuildingAndBlock(String buildingAndBlock){
        this.buildingAndBlock = buildingAndBlock;
    }

    public void setDistrict(String district){
        this.district = district;
    }

    public void setRegion(String region){
        this.region = region;
    }

    public void setAddress(String flat, String buildingAndBlock, String district, String region){
        this.flat = flat;
        this.buildingAndBlock = buildingAndBlock;
        this.district = district;
        this.region = region;
    }
}
